if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
   let sceneDelegate = windowScene.delegate as? SceneDelegate {
       // 修改根视图控制器等操作...
}